package wzc.design_pattern.behaviour.mediator;

/**
 * @Author 那和不是个啥
 * @Date 2025/7/20
 * @Description
 */

public class UserB extends Colleague {

    public UserB(Mediator mediator) {
        super(mediator);
    }

    @Override
    public void send(String message) {
        System.out.println("用户B发送消息：" + message);
        mediator.sendMessage(message, this);
    }

    @Override
    public void receive(String message) {
        System.out.println("用户B接收到消息：" + message);
    }

}
